//泛型：类型也有参数
function login(username) {
    return username;
}
var res = login("user");
console.log(res);
function yyy(a, b) {
    return [a, b];
}
var res1 = yyy("lk", "yyy");
console.log(res1);
function xxx(a) {
    return a;
}
var res2 = xxx("sss");
console.log(res2);
function y2(a) {
    return a;
}
var res3 = y2("name");
console.log(res3);
function y3(a, b) {
    return a[b];
}
var res4 = y3({ name: "zs", age: 23 }, "name");
console.log(res4);
var res5 = y3({ name: "zs", age: 23 }, "age");
console.log(res5);
function y5(a) {
    return a;
}
var a = {
    name: "zs"
};
console.log(a);
